package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-26
 * Time: 21:03
 */
public class Main {
    public static void main(String[] args) {
        Magpie magpie = new Magpie();
        magpie.eat();//调用父接口的eat()。输出：喜鹊正在吃...
        magpie.fly();//调用子接口的fly()。输出：喜鹊正在飞...
    }
}
